home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 July: Mac OS SDK / Dev.CD Jul 00 SDK2.toast / Development Kits / Cross Platform / QuickTime 4.1.2 Windows SDK / RIncludes / Finder.r < prev    next >
Encoding:
Text File  |  2000-04-12  |  4.8 KB  |  146 lines  |  [TEXT/R*ch]

  1. /*
  2.      File:        Finder.r
  3.  
  4.      Contains:    Finder flags and container types.
  5.  
  6.      Version:    Technology:    Mac OS 8.5
  7.                  Release:    QuickTime 4.1
  8.  
  9.      Copyright:    © 1990-1999 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17.  
  18. #ifndef __FINDER_R__
  19. #define __FINDER_R__
  20.  
  21. #ifndef __CONDITIONALMACROS_R__
  22. #include "ConditionalMacros.r"
  23. #endif
  24.  
  25. #define kCustomIconResource             (-16455)            /*  Custom icon family resource ID  */
  26. #define kCustomBadgeResourceType         'badg'
  27. #define kCustomBadgeResourceID             (-16455)
  28. #define kCustomBadgeResourceVersion     0
  29.  
  30.  
  31. /*----------------------------badg • Custom badge---------------------------------------*/
  32. type 'badg' {
  33.     integer = 0;            /* version */
  34.     integer;                /* customBadgeResourceID */
  35.     literal longint;        /* customBadgeType */
  36.     literal longint;        /* customBadgeCreator */
  37.     literal longint;        /* windowBadgeType */
  38.     literal longint;        /* windowBadgeCreator */
  39.     literal longint;        /* overrideType */
  40.     literal longint;        /* overrideCreator */
  41. };
  42.  
  43. #define kRoutingResourceType             'rout'
  44. #define kRoutingResourceID                 0
  45.  
  46.  
  47. /*----------------------------rout • Folder routing-------------------------------------*/
  48. type 'rout' {
  49.     array {
  50.         literal longint;        /* creator */
  51.         literal longint;        /* fileType */
  52.         literal longint;        /* targetFolder */
  53.         literal longint;        /* destinationFolder */
  54.         longint = 0;            /* Reserved (set to 0) */
  55.     };
  56. };
  57.  
  58. #define kContainerFolderAliasType         'fdrp'                /*  type for folder aliases  */
  59. #define kContainerTrashAliasType         'trsh'                /*  type for trash folder aliases  */
  60. #define kContainerHardDiskAliasType     'hdsk'                /*  type for hard disk aliases  */
  61. #define kContainerFloppyAliasType         'flpy'                /*  type for floppy aliases  */
  62. #define kContainerServerAliasType         'srvr'                /*  type for server aliases  */
  63. #define kApplicationAliasType             'adrp'                /*  type for application aliases  */
  64. #define kContainerAliasType             'drop'                /*  type for all other containers  */
  65. #define kDesktopPrinterAliasType         'dtpa'                /*  type for Desktop Printer alias  */
  66. #define kContainerCDROMAliasType         'cddr'                /*  type for CD-ROM alias  */
  67. #define kApplicationCPAliasType         'acdp'                /*  type for application control panel alias  */
  68. #define kApplicationDAAliasType         'addp'                /*  type for application DA alias  */
  69. #define kPackageAliasType                 'fpka'                /*  type for plain package alias  */
  70. #define kAppPackageAliasType             'fapa'                /*  type for application package alias  */
  71.  
  72. #define kSystemFolderAliasType             'fasy'
  73. #define kAppleMenuFolderAliasType         'faam'
  74. #define kStartupFolderAliasType         'fast'
  75. #define kPrintMonitorDocsFolderAliasType  'fapn'
  76. #define kPreferencesFolderAliasType     'fapf'
  77. #define kControlPanelFolderAliasType     'fact'
  78. #define kExtensionFolderAliasType         'faex'
  79.  
  80. #define kExportedFolderAliasType         'faet'
  81. #define kDropFolderAliasType             'fadr'
  82. #define kSharedFolderAliasType             'fash'
  83. #define kMountedFolderAliasType         'famn'
  84.  
  85.  
  86. /*----------------------------BNDL • Bundle---------------------------------------------*/
  87. type 'BNDL' {
  88.         literal longint;                                        /* Signature            */
  89.         integer;                                                /* Version ID            */
  90.         integer = $$CountOf(TypeArray) - 1;
  91.         array TypeArray {
  92.                 literal longint;                                /* Type                 */
  93.                 integer = $$CountOf(IDArray) - 1;
  94.                 wide array IDArray {
  95.                         integer;                                /* Local ID             */
  96.                         integer;                                /* Actual ID            */
  97.                 };
  98.         };
  99. };
  100.  
  101. /*----------------------------open • FileTypes an app can open--------------------------*/
  102. type 'open' {
  103.         literal longint;                                        /* app signature        */
  104.         integer = 0;
  105.         integer = $$CountOf(typeArray);                             /* Array size            */
  106.         wide array typeArray {                                    /* FileTypes that app can open */
  107.                 literal longint;                                /* FileType                */
  108.         };
  109. };
  110.  
  111. /*----------------------------FREF • File Reference-------------------------------------*/
  112. type 'FREF' {
  113.         literal longint;                                        /* File Type            */
  114.         integer;                                                /* Icon ID                */
  115.         pstring;                                                /* Filename             */
  116. };
  117.  
  118. /*----------------------------kind • Custom kind strings --------------------------------*/
  119. type 'kind' {
  120.         literal longint;                                        /* app signature         */
  121.         integer;                                                /* region code of kind string localizations */
  122.         integer = 0;
  123.         integer = $$CountOf(kindArray);                             /* Array size            */
  124.         wide array kindArray {
  125.                 literal longint;                                /* File Type            */
  126.                 pstring;                                        /* custom kind strings    */
  127.                 align    word;
  128.         };
  129. };
  130. /*----------------------------mach • cdev filtering-------------------------------------*/
  131. type 'mach' {
  132.         unsigned hex integer;                                                /* Softmask    */
  133.         unsigned hex integer;                                                /* Hardmask    */
  134. };
  135. /*----------------------------nrct • Rectangle List-------------------------------------*/
  136. type 'nrct' {
  137.         integer = $$CountOf(RectArray);                            /* Number of rectangles    */
  138.         array RectArray {
  139.             rect;
  140.         };
  141. };
  142.  
  143.  
  144. #endif /* __FINDER_R__ */
  145.  
  146.